#
# src/clean/test/CMakeLists.txt
#

include_directories(${Qwt6_INCLUDE_DIR})

# === CppUnit testing.
set(clean_test_SRC
    src/CppUnitMain.cpp
    src/TestSpectrumProcessing.cpp
    src/TestClean.cpp
)
add_executable(clean_test ${clean_test_SRC})
target_link_libraries(clean_test
    spectrum_clean
    plot_widget
    ${Qwt6_Qt4_LIBRARY}
    ${QT_QTCORE_LIBRARY}
    ${CPPUNIT_LIBRARIES}
)
add_test(clean_test clean_test)

# === QtTest unit testing.
qt4_wrap_cpp(clean_test_MOC QTest_clean.h)
add_executable(qtest_clean ${clean_test_MOC})
target_link_libraries(qtest_clean
    spectrum_clean
    plot_widget
    core
    ${Qwt6_Qt4_LIBRARY}
    ${QT_QTTEST_LIBRARY}
    ${QT_QTGUI_LIBRARY}
)
#add_test(qtest_clean qtest_clean)
